package com.pounds.service.impl;

import com.pounds.mapper.OrderMapper;
import com.pounds.pojo.Order;
import com.pounds.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Order> getUserOrder(String account) {
        return orderMapper.getUserOrder(account);
    }

    @Override
    public void newOrder(String account,String name, String price) {
        orderMapper.newOrder(account, name, price);
    }
}
